Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable wat feature from wasmer and wasmtime #2586

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

jvff
Copy link
Contributor

@jvff jvff commented Oct 8, 2024

Motivation

We've recently had dependency version conflicts for wat between wasmer and wasmtime, which required releasing a new version of our linera-wasmer work every time an update for wasmtime was needed (#2427, #2530). That dependency on wat isn't actually needed on either runtime, except for a couple of tests.

Proposal

Disable the wat features and additional features from wasmer and wasmtime.

Because dev-dependencies can't have optional dependencies, now linera-execution tests require wasmer so that it can enable the wat feature.

Test Plan

CI should catch regressions, since this just changes dependencies.

Release Plan

  • Nothing to do / These changes follow the usual release cycle, as these changes should be backwards compatible.

Links

Instead of only running the tests if the feature is enabled. Also enable
the `wat` feature in preparation to remove the `sys-default` feature.
@jvff jvff added the chore label Oct 8, 2024
@jvff jvff added this to the Testnet #2 milestone Oct 8, 2024
@jvff jvff requested review from Twey and ma2bd October 8, 2024 01:23
@jvff jvff self-assigned this Oct 8, 2024
It doesn't seem to be needed.
Disable the default features on `wasmer-compiler-singlepass`.
Only enable the ones that are needed.
@@ -404,7 +404,7 @@ impl<'bytecode> Sanitizer<'bytecode> {
}
}

#[cfg(all(test, with_wasmer))]
#[cfg(test)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We always test with Wasmer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we have to :/ Because otherwise we can't enable the wat feature only for tests :(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:(

Relevant discussion: rust-lang/cargo#1596

@jvff jvff merged commit 2b39834 into linera-io:main Oct 8, 2024
6 checks passed
@jvff jvff deleted the disable-wat-features branch October 8, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants